package com.metasoft.flex {
	
	import mx.resources.ResourceBundle;
	
	public class MetasoftULC {
		
		[ResourceBundle("metasoft")]
		public static var rb:ResourceBundle;
		// FieldId values for GetData operation
        public static const Field_Title:String      = "Title";
        public static const Field_Keyword:String    = "Keyword";
        public static const Field_Synopsis:String   = "Synopsis";
        public static const Field_Genre:String      = "Genre";
        public static const Field_Creator:String    = "Creator";
        public static const Field_CreditName:String = "CreditName";
        public static const Field_CRID:String       = "CRID";
        public static const Field_CopyRight:String  = "Copyright";
        
        public static const Profile_FileName:String = "profiles.xml";
        public static const Profile_FilePath:String = "../";
        
		public static const HostName:String 	= rb.getString("host.name");
		public static const PortNo:String 		= rb.getString("port.no");
		public static const AppName:String 		= rb.getString("app.name");
		public static const LogoPath:String 	= rb.getString("logo.path");
		public static const queryAll:Boolean 	= rb.getBoolean("queryall");
        public static const ContextPath:String 	= "http://" + HostName + ":" + PortNo + "/" + AppName;
        public static const PublishURL:String 	= "http://"+ HostName + ":"+ PortNo + "/" + AppName +  "/portletLogin.htm?menuKey=3&portletUserName=admin&portletUserRole=Administrator";
        public static const ImportURL:String  	= "http://"+ HostName + ":"+ PortNo + "/" + AppName +  "/portletLogin.htm?menuKey=7&portletUserName=admin&portletUserRole=Administrator";
        public static const VideoPlayer:String 	= "http://"+ HostName + ":"+ PortNo + "/" + AppName +  "/demo/player.html"        
        public static const ImageDir:String 	= "/repository/images/";
        public static const OtherDir:String 	= "/repository/others/";
        public static const UserImgDir:String 	= "/repository/users/";
        public static const Key_Users:String 	= "users";
        
        public static const ProfileURL:String = ContextPath + "/jsp/ProfileInfo.jsp"
        
        public static const UserDelimiter:String = ",";
        public static const UserIdPwdDelimiter:String = "/";
        public static const GenreDelimiter:String = ";";
        
        public static const LoggedInUser:String = "loggedInUser";
        public static const Preview:String      = "preview";
        public static const LastLoggedInUser:String = "lastLoggedInUser";
        
        public static const XMLAttribute_Id:String    = "firstname";
        public static const XMLNode_Profile:String    = "profile";        
        public static const XMLNode_FirstName:String  = "firstname";
        public static const XMLNode_LastName:String	  = "lastname";
        public static const XMLNode_Gender:String 	  = "gender";
    	public static const XMLNode_Password:String	  = "password";
        public static const XMLNode_Age:String 		  = "age";
        public static const XMLNode_Genre:String	  = "genre";
        public static const XMLNode_CreditName:String = "creditname";        
        public static const XMLNode_Query:String      = "query"; 
        
        public static const default_Gender:String	  	= "Male";
        public static const Gender_Female:String	  	= "Female";
        public static const default_PrefValue : int	    = 5;
        public static const CS_Content:String	  	  	= "ContentCS";
    	public static const CS_ContentType:String  	  	= "ContentTypeCS";
        public static const CS_Intention:String	  		= "IntentionCS";
        public static const CS_Atmosphere:String  		= "AtmosphereCS";
        public static const CS_Format:String	  		= "FormatCS";
        public static const CS_IntendedAudience:String	= "IntendedAudienceCS";
        public static const CS_MediaType:String	  		= "MediaTypeCS";
		public static const CS_OriginationType:String	= "Origination";
		public static const CS_ContentAlertType:String	= "ContentAlert";
		
		public static const ContentCSHref:String	  	  	= "urn:tva:metadata:cs:ContentCS:2005:";
    	public static const ContentTypeCSHref:String  	  	= "urn:tva:metadata:cs:ContentTypeCS:2005:";
        public static const IntentionCSHref:String	  		= "urn:tva:metadata:cs:IntentionCS:2005:";
        public static const AtmosphereCSHref:String  		= "urn:tva:metadata:cs:AtmosphereCS:2005:";
        public static const FormatCSHref:String	  			= "urn:tva:metadata:cs:FormatCS:2005:";
        public static const IntendedAudienceCSHref:String	= "urn:tva:metadata:cs:IntendedAudienceCS:2005:";
        public static const MediaTypeCSHref:String	  		= "MediaTypeCS";
		public static const OriginationTypeCSHref:String	= "urn:tva:metadata:cs:OriginationCS:2005:";
		public static const ContentAlertTypeCSHref:String	= "urn:tva:metadata:cs:ContentAlertCS:2005:";
        
        
	    public static const Profile_UserDescription : String    		 = "Profile_UserDescription";
	    public static const Req_Table_GroupInformationTable: String      = "GroupInformationTable";
	    public static const Req_Table_ServiceInformationTable: String    = "ServiceInformationTable";
	    public static const Req_Table_PackageTable: String    			 = "PackageTable";
	    public static const Req_Table_TargetingInformationTable : String = "TargetingInformationTable";
	    
	    public static const operator_Contains : String  = "contains";
	    public static const operator_Not_Equals : String= "not_equals";
	    public static const operator_Equals : String    = "equals";
	    public static const default_MAXPrograms : int   = 100;
        
        public static const Format_Cinema : String    	= "Cinema";
        public static const Format_Movie : String    	= "Movie";
        public static const Format_TV : String    		= "TV";   

        public static const Type_Images : Array    		= new Array(".png", ".jpg", ".jpeg", ".bmp", ".gif", ".tif", ".tiff");  

	    public static const default_dateFormat:String	= "YYYY-MM-DD";  
	    public static const default_duration:String	    = "PT0H0M";      														
        														  
        public static var CategoryXML:XML;
        
        public static const ChannelURL:String  			= "http://"+ HostName + ":"+ PortNo + "/" + AppName +  "/messagebroker/amf";
        public static const ChannelDef:String			= "my-amf";
        public static const ChannelDestination:String  	= "MetasoftBlaze";
        public static const AdminChannelDestination:String  	= "MetasoftFlexAdminHelper";
        
        public static const CRID_NAME : String			= "crid://nexxusnet.com/";
        public static const Type_StillImage : String	= "Image";
        public static const Type_Video : String			= "Video";
        public static const Type_Audio : String			= "Audio";
        public static const Type_All   : String			= "All Files";
        
        public static const Format_KB : String			= "KB";
        public static const Format_MB : String			= "MB";
        public static const Format_GB : String			= "GB";
	    public static const Req_Table_ProgramInformationTable:String = "ProgramInformationTable";
	    public static const MemberOf:String				= "MemberOf";
	    public static const MetadataOriginIDRef:String	= "MetadataOriginIDRef";
    	public static const Equals:String				= "equals";
	    public static const Contains:String				= "contains";
	    
	    public static const ContentType:String			= "contentType";
	    public static const Category:String				= "category";
	    public static const ParentalGuidence:String		= "guidance";
	    public static const Languages:String			= "lang";
	    public static const RoleCS:String				= "urn:mpeg:mpeg7:cs:RoleCS:2001:";
	    public static const ImageTypesArray : Array 	= new Array("bmp", "jpg", "jpeg", "jpe", "jfif", "gif", "png", "tif", "tiff");
		public static const AudioTypeArray : Array 		= new Array("wma","wav","mp3","ram");
		public static const VideoTypeArray : Array 		= new Array("mpeg","mpg","flv","dat","mp4","vob");
		public static const Privacy_Public : String		= "Public";
		public static const Privacy_Private : String	= "Private";
		
		public static const TAB_ADVERTISE : String 		= "Advertising";
		public static const TAB_PROGRAMS  : String 		= "Programs";

		public static const ADVERTISE : String 			= "Advertise";
		public static const ADVERTISE_HREF : String 	= IntentionCSHref + "1.5";
		public static const Automatic:String 					= "Automatic";
		public static const Req_Table_SegmentInformationTable:String = "SegmentInformationTable";
	}
}